<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/bishe2/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<!--    方框风格的表单集合-->
<form class="layui-form layui-form-pane"  action="/bishe2/project/projectUpdate" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">项目编号</label>
        <div class="layui-input-block"  >
            <input type="text" value="${requestScope.project.pid}"name="pid" autocomplete="off"  readonly="readonly" class="layui-input" lay-verify="required">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">项目名称</label>
        <div class="layui-input-block"  >
            <input type="text" value="${requestScope.project.pname}"name="pname" autocomplete="off" placeholder="请输入项目名称" class="layui-input" lay-verify="required">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">开标地点</label>
        <div class="layui-input-block" >
            <input type="text" value="${requestScope.project.pplace}" name="pplace" autocomplete="off" placeholder="请输入开标地点" class="layui-input" lay-verify="required">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">招标人或机构</label>
        <div class="layui-input-block" >
            <input type="text" value="${requestScope.project.ptenderee}"name="ptenderee" autocomplete="off" placeholder="请输入招标人或机构" class="layui-input" lay-verify="required">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">评标日期</label>
            <div class="layui-input-block">
                <input type="text" value="${requestScope.project.pdate}" name="pdate" id="projectDate" autocomplete="off" class="layui-input" lay-verify="required">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">评标时间</label>
            <div class="layui-input-inline">
                <input type="text" value="${requestScope.project.ptime}" name="ptime" id = "projectTime" autocomplete="off" class="layui-input" lay-verify="required">
            </div>
        </div>
    </div>

    <div class="layui-form-item  pane">
        <label class="layui-form-label">评标行业</label>
        <div class="layui-input-block">
            <select name="pindustry" id="selectOption" lay-filter="行业">
                <option value=""></option>
                <option value="土木工程建筑业" <c:if test="${requestScope.project.pindustry eq'土木工程建筑业'}">selected="selected"</c:if>>土木工程建筑业</option>
                <option value="煤炭采选业" <c:if test="${requestScope.project.pindustry eq'煤炭采选业'}">selected="selected"</c:if>>煤炭采选业</option>
                <option value="综合技术服务业"<c:if test="${requestScope.project.pindustry eq'综合技术服务业'}">selected="selected"</c:if>>综合技术服务业</option>
                <option value="邮电通信业"<c:if test="${requestScope.project.pindustry eq'邮电通信业'}">selected="selected"</c:if>>邮电通信业</option>
                <option value="地质勘探业"<c:if test="${requestScope.project.pindustry eq'抵制勘探业'}">selected="selected"</c:if>>地质勘探业</option>
                <option value="其他"<c:if test="${requestScope.project.pindustry eq'其他'}">selected="selected"</c:if>>其他</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <button class="layui-btn " lay-submit="" lay-filter="projectSubmit">跳转式提交</button>
    </div>
</form>


<script src="/bishe2/layui/layui.js" charset="UTF-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->

<script>
    // // //js导航栏跳转
    // $(".jump_refresh_url").click(function () {
    //     var url = $(this).attr('href');
    //     parent.refreshHighlight(url);
    //     top.refreshHighlight(url);
    // });

    //数据填充表格
    layui.use(['form',  'laydate','jquery'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,$ = layui.jquery
            ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#projectDate'
        });
        //时间
        laydate.render({
            elem: '#projectTime'
            ,type: 'time'
        });


    });
</script>

</body>
</html>